<?php 
@session_start();

if(isset($_SESSION['statusSession']) && $_SESSION['statusSession'] == true)
{
/*	$arrayPrivilege = array();
	
	if(isset($_SESSION['codeUser2']))
		$arrayPrivilege = $_SESSION['modelsUsers2'];
	else
		$arrayPrivilege = $_SESSION['modelsUsers'];
	
	for($i=0;$i<count($arrayPrivilege);$i++)
	{
		if($arrayPrivilege[$i]->section == $section)//$section --> es la seccion que estamos llamand ejem: user: 1 ownleads: 2 etc...
		{
			if($arrayPrivilege[$i]->type == 'None')
			{
				header('location: logout.php');
			}
			elseif($arrayPrivilege[$i]->type == 'Write')
			{
				$privilege = 'Write';
			}
			else
			{
				$privilege = 'Read';
			}
		}
	}*/	
}
else
{
	//Se esta intentando acceder sin haber pasada por el login
	/*$delay=0;
	$url = "index.php";
	echo "<meta http-equiv='Refresh' content='$delay; url=$url'>";
	exit();*/
	
	header('location: index.php');
}

?>